package com.ncr.travel.tas.configuration.management;

import java.lang.reflect.Method;

/**
 * a small collection class which holds a getter/setter method pair
 * @author eb250081
 *
 */
public class GetterSetterPair {

	private Method getter;
	
	private Method setter;
	
	private String annotationName;
	
	void setGetter(Method getter) {
		this.getter = getter;
	}
	
	Method getGetter() {
		return getter;
	}
	
	void setSetter(Method setter) {
		this.setter = setter;
	}
	Method getSetter() {
		return setter;
	}

	/**
	 * tells us whether this item has both a setter and getter
	 * @return
	 */
	public boolean isBalanced() {
		// TODO Auto-generated method stub
		return getter != null && setter != null;
	}

	public void setAnnotationName(String annotationName) {
		this.annotationName = annotationName;
	}

	public String getAnnotationName() {
		return annotationName;
	}

	

	
	
}
